package com.dsx.haha.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.dsx.haha.mapper.UserMapper;
import com.dsx.haha.model.entity.Article;
import com.dsx.haha.model.entity.Role;
import com.dsx.haha.model.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;


/**
 * @author dsx
 * @date 2021/3/11 13:20
 * @since JDK1.8
 */
public interface UserService extends IService<User> {
    public UserMapper getUserMapper();
    public User addUser();
    
    User getUser(String username);
    List<String> getUserRoles(String id);

    List<Map> getAdminTenants(String id);

    List<Map> getUserTenants(String id);
    
    String getUserId(String username);
    
    List<Article> getArtByTenantId(String id);
}
